package dao;

import model.Goods;

import java.sql.Connection;
import java.util.List;

public interface GoodsDAO {

    List<Goods> getGoodsList() throws Exception;

    Goods getGoodsById(String id);

    int addGoods(Goods goods);

    int updateGoods(String id, Goods goods);

    int deleteGoods(String id);

    List<Goods> getGoodsByName(String name);

    int updateGoodsStock(Connection con, Goods goods, Integer flag, Integer num) throws Exception;

    int updateGoodsStock(Goods goods, Integer flag, Integer num);


}
